import request from '@/utils/request'
import { method } from 'lodash'

// 获取示教视频
export function getList(data) {
  return request({
    url: '/assess/teachingVideo/selectAll',
    method: 'post',
    data
  })
}

// 获取示教详情
export function getListById(id) {
  return request({
    url: `/assess/teachingVideo/selectById/${id}`,
    method: 'get'
  })
}

// 获取示教视频（不分页）
export function getListAll(data) {
  return request({
    url: '/assess/teachingVideo/selectTestedAll',
    method: 'post',
    data
  })
}

// 添加示教视频
export function insertVideo(data) {
  return request({
    url: '/assess/teachingVideo/insert',
    method: 'post',
    data
  })
}

// 删除示教视频
export function deleteVideo(data) {
  return request({
    url: '/assess/teachingVideo/delete',
    method: 'post',
    data
  })
}